/*
 * @Description: 请描述此文件
 * @Author: LDM
 * @Date: 2021-09-03 14:39:56
 * @LastEditors: LDM
 * @LastEditTime: 2021-09-17 15:03:27
 */
// import type { RouteRecordRaw } from 'vue-router'
import type { IAppRouteRecordRaw } from './types'
import layout from '/@/layout/Index.vue'
export const basicRoutes: Array<IAppRouteRecordRaw> = [
  {
    path: '/',
    component: layout,
    redirect: '/home',
    meta: {
      title: '主页',
      icon: 'el-icon-s-home'
    },
    children: [
      {
        path: 'home',
        name: 'Home',
        meta: {
          title: '列表'
        },
        component: () => import('/@/views/use.vue')
      }
    ]
  },
  {
    path: '/admin',
    component: layout,
    name: 'Admin',
    meta: {
      title: '管理页'
    },
    children: [
      {
        path: 'list',
        name: 'AdminList',
        meta: { title: '列表' },
        component: () => import('/@/views/admin.vue')
      }
    ]
  },
  {
    path: '/login',
    component: () => import('/@/views/login.vue'),
    name: 'Login',
    meta: {
      title: '登录',
      hidden: true
    }
  }
]
